﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace GP.Logic.Model
{
    public class Citizen
    {
        public long CitizenId { get; set; }
        public long DocId { get; set; }

        [Required]
        public string SocialSecurity { get; set; }
        
        [Required]
        public string Name { get; set; }

        public virtual ICollection<GrantedAccessTo> GratedAccessTos { get; set; }

        public virtual ICollection<Event> Events { get; set; }

        public DateTime TimeCreated { get; set; }
        public string Phone { get; set; }
        public string Email { get; set; }

        [Required]
        public string PassKey { get; set; }

        public virtual Doctor Doctor { get; set; }
    }
}